package Command_Pattern.Calculator;

// -*-coding:utf-8 -*-
//人员：刘陆鑫
//班级：19软3
//学号；2019110218
public class Client {
    public static void main(String args[]){
        AbstractCommand command;
        CalculatorForm form=new CalculatorForm();
        command=new AddCommand();
        form.setCommand(command);

        form.compute(10);
        form.compute(5);
        form.compute(10);
        form.undo();
        form.redo();
    }
}
